package com.vic.test.designpattern._2proxypattern.staticproxy;

import com.vic.test.designpattern._2proxypattern.IUser;
import com.vic.test.designpattern._2proxypattern.UserDao;

public class APP {
    public static void main(String[] args) {
        //目录对象
        IUser target = new UserDao();
        //代理对象，把目标对象传给代理对象，建立代理关系
        IUser proxy = new UserDaoProxy(target);

        proxy.save();//执行代理方法
    }

}
